package C2;

public class JavaVMStackSOF {
	
	private int stackLength = 1;
	
	public void lengthLeak(){
		stackLength++;
		lengthLeak();
	}

	public static void main(String[] args) {
		JavaVMStackSOF sof = new JavaVMStackSOF();
		try {
			sof.lengthLeak();
		} catch (Throwable e) {
			System.out.println("stack length:"+sof.stackLength);
			throw e;
		}
	}

}
